import React from 'react';

import Constants from '../../common/Constants';
import BaseAction from '../common/BaseAction';

//pickerData:[{key:key, value:"value"}], callback
export default class CommonShowPickerAction extends BaseAction {
  constructor() {
    super();
    this.moduleType = Constants.MODULE_TYPE.COMMON;
    this.name = "CommonShowPickerAction";
  }

  finish(stage) {
    stage.setState({
      pickerData:{isShow:true, data:this.data.pickerData, data2:this.data.pickerData2, type:this.data.type,
        callback:this.data.callback, extends1:this.data.extends1, extends2:this.data.extends2},
    })
  }
}
